package com.xugongzhang.spring.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author X
 * @date 2022/11/28 23:52
 */
@Component
@ConfigurationProperties(prefix = "mycar")
@Data
public class Car {
    private String name;
    private Integer price;
}